package request

import "yundian/internel/app/models/ticket"

// 订单列表
type GetTicketLineOrdersListReq struct {
	BaseListReq
	MemberId int    `json:"memberId" form:"memberId"`
	Status   uint8  `json:"status" form:"status"`
	DeviceSn string `json:"deviceSn" form:"deviceSn"`
	TradeNo  string `json:"tradeNo" form:"tradeNo"`
}
type GetTicketLineOrdersListRes struct {
	ticket.OrderModel
	LineName string `gorm:"column:line_name" json:"lineName"`
}

// 订单结束
type CloseOrderReq struct {
	DeviceSn   string `json:"deviceSn" form:"deviceSn"`
	ProductId  string `json:"productId" form:"productId"`
	Openid     string `json:"openid" form:"openid"`
	TradeNo    string `json:"tradeNo" form:"tradeNo"`
	CreateTime string `json:"createTime" form:"createTime"` // 防止重复订单
	EndTime    int64
}
